<!DOCTYPE html>
{% load static %}
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>修改密码</title>
  <link rel="stylesheet" href="{% static 'dist/css/adminlte.min.css' %}">
</head>
<body>
  <div class="container">
    <div class="row">
      <div class="col-8">
        <div class="page-header">
          <h2>修改密码</h2>
        </div>
        <form novalidate action="" method="post" enctype="multipart/form-data" class="form-horizontal">
          {% csrf_token %}
          <div class="form-group">
            <label for="{{form_obj.old_password.id_for_label}}" class="col-sm-2">{{form_obj.old_password.label}}</label>
            <div class="col-sm-8">{{form_obj.old_password}}
              <span class="help-block">{{ form_obj.errors.old_password.0 }}</span>
            </div>
          </div>
          <div class="form-group">
            <label for="{{form_obj.new_password.id_for_label}}" class="col-sm-2">{{form_obj.new_password.label}}</label>
            <div class="col-sm-8">{{form_obj.new_password}}
              <span class="help-block">{{ form_obj.errors.new_password.0 }}</span>
            </div>
          </div>
          <div class="form-group">
            <label for="{{form_obj.re_new_password.id_for_label}}" class="col-sm-2">{{form_obj.re_new_password.label}}</label>
            <div class="col-sm-8">{{form_obj.re_new_password}}
              <span class="help-block">{{ form_obj.errors.re_new_password.0 }}</span>
            </div>
          </div>
          <div class="col-8">
            <label for="agreeTerms">
              {{ info }}
            </label>
          </div>
          <div class="form-group">
            <div class="col-sm-10">
              <input type="submit" class="btn btn-success" value="修改密码">
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</body>
</html>